package la.bbs558.service;

import com.baomidou.mybatisplus.extension.service.IService;
import la.bbs558.entity.BbsBoard;
import la.bbs558.entity.vo.BbsBoardVO;
import la.bbs558.entity.params.BoardSearchPage;
import la.bbs558.entity.params.BoardUpdateParams;

/**
 * @author: Shanks
 * @date: 2023/12/15 22:42
 * @desc:
 */
public interface BbsBoardService extends IService<BbsBoard> {
    void listByPageForAdmin(BoardSearchPage searchPage);

    void addBoardForAdmin(BoardUpdateParams updateParams);

    void updateBoardForAdmin(BoardUpdateParams updateParams);

    void deleteBoardByIdForAdmin(Long id);

    BbsBoardVO getBoardById(Long id, boolean isAdmin);

}
